SMC_MUX Protocol

 

SMC_MUX is protocol to communicate with Universal Mux. System developed, in Korea.

 

1. Read settings
<Figure 1> Read setting example of SMC_MUX communication driver

Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to controller.

 

SMC_MUX driver's read schedule

Read schedule setting parameters are as follows : 

1) STATION - STATION number.

2) COMMAND – Don't care.

3) Read Start Address – Don't care.

4) Save start address for Communication Server - Position of ScanBuf at which read value is saved.

5) Read Size – Always fixed as 64 WORD.

Save 8 WORD data of each card to communication memory, because maximum 8 cards(Slot) can be installed.

DI, DO Card – Save 16 bit data per 1 WORD to memory(First WORD of communication memory save address of each card)

AI, AO, RTD, TC Card – Save 8 WORD datas to memory.

 

READ schedule example)

READ,   1,   0,   0,     0,   64,

READ,   2,   0,   0,   100,   64,

 

* Empty slot not display the data value at communication memory.

 

Example ) In case of installing DI card to the third slot, save DI value to communication memory save address + no.16 memory (1 WORD).

Example ) In case of installing AI card to the 8th slot, save AI value to communication memory save address + no.56 ~ no.63 memory (8 WORDs).

 

2. Writing settings

You can output to card of DO, AO and etc by using writing settings of SMC_MUX controller.

 

Digital Write

Digital write setting parameters are as follows :

1) PORT : Setting for PORT number.

2) STATION : STATION number of SMC_MUX.

3) ADDRESS : Card number of current STATION. (0 ~ 7 : Number is defined as equipped slot order)

4) EXTRA1 : DI (Digital Input), DO (Digital Output).

5) EXTRA2 : Bit position of digital. (0 ~ 15).

 

Write example 1)

PORT : 0  STATION : 1  ADDRESS : 0001  EXTRA1 : DO, EXTRA2 : 3 

If you set as above, you can control(ON/OFF) the forth bit value of second slot's DO module of no.1 STATION for SMC_MUX.

 

Write example 2)

PORT : 0  STATION : 1  ADDRESS : 0001  EXTRA1 : DO, EXTRA2 : 7 

If you set as above, you can control(ON/OFF) the 8th(MSB) bit value of second slot's DO module of no.1 STATION for SMC_MUX

 

Analog Write

Analog write setting parameters are as follows :

1) PORT : Setting for PORT number.

2) STATION : STATION number of SMC_MUX.

3) ADDRESS : Card number of current STATION. (0 ~ 7 : Number is defined as equipped slot order)

4) EXTRA1 : AI (Analog Input), AO (Analog Output), RTD, TC.

5) EXTRA2 : Order number in analog card. (0 ~ 7 : Because 1 analog card has 8 terminals)

 

Write example 1)

PORT : 0  STATION : 1  ADDRESS : 0002  EXTRA1 : AO,  EXTRA2 : 0 

If you set as above, you can change the first AO value of SMC_MUX controller's the third slot(card) connected with no.0 port and no.1 STATION.

 

Write example 2)

PORT : 0  STATION : 1  ADDRESS : 0002  EXTRA1 : AO,  EXTRA2 : 7 

If you set as above, you can change the 7th AO value of SMC_MUX controller's the third slot(card) connected with no.0 port and no.1 STATION.